package basic8;

class J15_SungJukService_Impl 	
	implements J15_SungjukService{

	@Override
	public int getTotal(J15_Sungjuk_VO sj) {
		int tot = sj.getKor()+sj.getEng()+sj.getMat();
		return 0;
	}

	@Override
	public double getAverage(J15_Sungjuk_VO sj) {
		double avg=(double)getTotal(sj)/3;
		return 0;
	}

	@Override
	public char getGrade(J15_Sungjuk_VO sj) {
		char grd='가';
		switch((int)getAverage(sj)/10){
			case 10: case9: grd='수';  break;
			case 8: grd='우'; break;
			case 7: grd='미'; break;
			case 6: grd='양'; break;
		}
		return grd;
	}
		
	}


